﻿/********************************************************************************/
// <copyright file="Event.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
// <history>
//     <change who="Phuoc Le" date="21/12/2012 6:00:35 PM">Created</change>
// </history>
/********************************************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using JLL.China.Infrastructure.DomainBase;

namespace JLL.China.Model
{
    public class Event : BilanguageEntityBase<int>, IBilanguageContent, IAggregateRoot<int>
    {
        public decimal ID { get; set; }

        public string Title{get; set;}

        public string EventType{get; set;}

        public decimal? Event_ID { get; set; }

        public string EventSummary{get; set;}

        public string EventContent{get; set;}

        public DateTime EventDate{get; set;}

        public DateTime EventDateEnd{get; set;}
        
        [DisplayName("EventTime")]
        [Required(ErrorMessage = "Is required field. Format HH:MM (24 hour time)")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:HH:mm}")]
        public string EventTime{get; set;}

        [DisplayName("EventTimeEnd")]
        [Required(ErrorMessage = "Is required field. Format HH:MM (24 hour time)")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:HH:mm}")]
        public string EventTimeEnd{get; set;}

        public string Where { get; set; }

        public string EventColor { get; set; }

        public decimal LanguageFID { get; set; }

        public bool Status{get; set;}

        public string ContactEmail{get; set;}

        public DateTime DateCreated{get; set;}

        public string CreatedBy{get; set;}

        public Admin Admin{get; set;}

        public DateTime? DateUpdated { get; set; }
    }
}
